﻿using System.Runtime.CompilerServices;

namespace WJ.Infrastructure
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics;

    public static class IoC
    {
        private static IDependencyResolver _resolver;

 
        public static void InitializeWith(IDependencyResolver resolver)
        {
            _resolver = resolver;
        }


        public static T Resolve<T>()
        {
            return _resolver.Resolve<T>();
        }


    }

}